import request from '@/utils/request'

// 查询诚招合伙人列表
export function listLeague(query) {
  return request({
    url: '/system/league/list',
    method: 'get',
    params: query
  })
}

// 查询诚招合伙人详细
export function getLeague(sysLeagueid) {
  return request({
    url: '/system/league/' + sysLeagueid,
    method: 'get'
  })
}

// 新增诚招合伙人
export function addLeague(data) {
  return request({
    url: '/system/league',
    method: 'post',
    data: data
  })
}

// 修改诚招合伙人
export function updateLeague(data) {
  return request({
    url: '/system/league',
    method: 'put',
    data: data
  })
}

// 删除诚招合伙人
export function delLeague(sysLeagueid) {
  return request({
    url: '/system/league/' + sysLeagueid,
    method: 'delete'
  })
}

// 导出诚招合伙人
export function exportLeague(query) {
  return request({
    url: '/system/league/export',
    method: 'get',
    params: query
  })
}